#import "WXManage.h"
#import "WX.h"
#import "WXApi.h"

#pragma mark - WXManage
@interface WXManage()

@end
@implementation WXManage
+(instancetype)WXManageSingle {
    static dispatch_once_t onceToken;
    static WXManage *instance;
    dispatch_once(&onceToken, ^{
        instance = [[WXManage alloc] init];
    });
    return instance;
}

-(void) onResp:(BaseResp *)resp {
    if ([resp isKindOfClass:[SendAuthResp class]]) {
        SendAuthResp *auth = (SendAuthResp *)resp;
        [[WX WXSingle] loginResult:auth];
    }
}
@end
